/**
* @author Meng Zhang
**/

#include "stdafx.h"

#include "WriteLog.h"

bool _WriteLog(char *format, ...)
{
	char buffer[1000];

	va_list argptr;
	va_start(argptr, format);
	_vsnprintf_s(buffer,1000, format, argptr);
	va_end(argptr);
	OutputDebugStringA(buffer);
	Events::OutputLogEvent e;
	e.logMsg = buffer;
	EventBus::Instance()->PublishEvent(&e);
	return true;
}